CC=g++
CFLAGS=-g -c

all: liburlconn.a

liburlconn.a: URLConnection.o URLRequest.o URLResponse.o URI.o
	ar -r liburlconn.a URLConnection.o URLRequest.o URLResponse.o URI.o

URLRequest.o: URLRequest.h URLRequest.cpp
	$(CC) $(CFLAGS) URLRequest.cpp

URLResponse.o: URLResponse.h URLResponse.cpp 
	$(CC) $(CFLAGS) URLResponse.cpp

URLConnection.o: URLConnection.h URLConnection.cpp URLResponse.h URLRequest.h
	$(CC) $(CFLAGS) URLConnection.cpp

URI.o: URI.h URI.cpp
	$(CC) $(CFLAGS) URI.cpp

clean:
	rm *.o *.a
